fetch
Beware of Async/Await
Can you spot the problem with this piece of code?
Cannot perform I/O on behalf of a different request:Worker 里不能跨请求缓存的东西
这条报错不是业务 bug,是把请求 A 的 I/O 对象交给了请求 B。模块作用域缓存 Response、复用 ASSETS.fetch 结果、waitUntil 留下引用,四种写法对照修法。
Workers 里 fetch 超时不是网络慢:subrequest 限额踩坑记
Too many subrequests 长得像超时,其实是调度配额:计数发生在 fetch 派发那一刻,本地 dev 还不复现。实测 45/51/200 次与并发、缓存的对照,以及四条按收益排序的修法。
用 Worker Cron 做友链存活检测:20 分钟一轮,403 不算挂
友链检测的四个坑都在这:一次 invocation 50 次 fetch 是累计计数、10 个站点串行 2026ms 并发 332ms、403 与 DNS 530 要分三态判、fetch 自己 zone 的域名回 522。附一个文件跑完的完整实现。
Walmart Cash Back Deals: $1.72 Moneymaker Stuffing, FREE Kinder Bar, $0.05 Candy, and More!
Walmart has some fantastic deals on groceries, household essentials, personal care, and more this week! This week, Walmart has some amazing deals on all sort of…
The modern way to write JavaScript servers
(摘要暂无, 请查看原文)





